package com.hsw.habit.service;

import com.hsw.habit.model.JsonData;
import com.hsw.habit.model.User;

public interface UserService {

    User findUserById(int id);

    void insert(User user);

    boolean update(User user);

    User findUserByPhone(String phone);

    JsonData register(User user);

    JsonData login(String phone,String password);
}
